﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AISFMIOperator
{
    public partial class AddMedicalServiceForm : Form
    {
        public AddMedicalServiceForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MedicalService service = new MedicalService();
            service.MedicalServiceID = 0;
            service.MedicalServiceName = name.Text.Trim();
            service.Cost = float.Parse(cost.Text);

            service.Save();

            this.Close();
        }
    }
}
